<div class="bg_greenyellow round_10 quarter shadow_in_0 vpad_10 special">
    
    <ul class="rightmenu"><li><a href='<?php echo $this->url(array('action'=>'index','controller'=>'dictionary'),null,true); ?>'>&#8226 Wszystko &#8226</a></li>
        <? foreach($this->categories as $category){
        ?>
        <li><a href='<?php echo $this->url(array('action'=>'index','controller'=>'dictionary','cat'=>$category->getCategory_id()),null,true); ?>'> <? echo $category->getName() ?></a></li>
        <?
        }?>
    </ul>   
</div>    

<div class="threequarter bg_lightblue round_5 vpad_10 last fixed shadow_out_0"> 
    <div class =" center vpad_10 bg_mediumblue bold">
    <?
    
    for($l = 'A'; $l != 'Z'; $l++){
        if(isset($this->cat)){
            ?>
            <a href="<? echo $this->url(array('action'=>'index','controller'=>'dictionary','cat'=>$this->cat,'l'=>$l),null,true); ?>"> <? echo $l; ?> </a>
            <?
        } else {
            ?>
            <a href="<? echo $this->url(array('action'=>'index','controller'=>'dictionary','l'=>$l),null,true); ?>"> <? echo $l; ?> </a>
            <?
        }
        echo '&#8226;';
    }
    
    ?>
    <a href="<? echo $this->url(array('action'=>'index','controller'=>'dictionary','l'=>$l),null,true); ?>"> Z</a>
    </div>        

    <? if(count($this->kinds)== 0) {?>
    <div class="warning">Nie znaleziono towarów odpowiadających podanym kryteriom!</div>

    <br />
    <? } else { 

       foreach ($this->kinds as $kind) {?>
             <br />
             <h6><? echo $kind->getName().'  ( #id - '.$kind->getCommodityType_id().' )'; ?></h6>
             <div class="round_10 dbox"><? echo $kind->getDescription().'<br /><br /><br />'; ?></div>
             <br />
             <hr />
        <? }
        }
        echo $this->paginationControl($this->kinds,
                                    'Sliding',
                                    'utility/my_paginator_helper.phtml');
        
     ?>

</div>